/**
 * Created by 55456 on 2016/4/8.
 */
var BaseController = require("./BaseController");
var util = require("util");
var crypto = require('crypto');
var cache = require("../instances/cache");

var AuthController = function AuthController(attr){
    BaseController.apply(this,arguments);
};

util.inherits(AuthController,BaseController);

AuthController.prototype.user = function (ctx,LoginToken){
    return cache._client.getAsync(LoginToken).then(function(res){
        return res;
    });
};